package cn.cs.mapper;

import cn.cs.pojo.UserCompany;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserCompanyMapper {

    public UserCompany getUserCompanyById(@Param(value = "id") String id) throws Exception;

    public List<UserCompany> getUserCompanyListByMap(Map<String, Object> param) throws Exception;

    public Integer getUserCompanyCountByMap(Map<String, Object> param) throws Exception;

    public Integer insertUserCompany(UserCompany userCompany) throws Exception;

    public Integer updateUserCompany(UserCompany userCompany) throws Exception;

    public Integer deleteUserCompanyById(@Param(value = "id") String id) throws Exception;

    public Integer updateCompanyTypeId(@Param(value = "id") String id)throws Exception;

}
